using System;
using Castle.MonoRail.Framework;
using Castle.MonoRail.ActiveRecordSupport;
using DecisionesInteligentes.iEvalua.Models;

namespace DecisionesInteligentes.iEvalua.Web.Controllers
{
	public class ApplicationController : BaseController<Application>
	{
    	public override void Index()
		{
			Application[] apps = Application.FindAll();
			PropertyBag["entities"] = apps;
			PropertyBag["message"] = "We are in Monorail";
		}
		
		public void Fail()
		{
			throw new Exception("Exception thrown from a MonoRail action");
		}
	}
}